package com.foosun.core.entity.validator;

import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;

import com.foosun.core.entity.SysLogs;

public class SysLogsValidator implements Validator {

	@Override
	public boolean supports(Class<?> clazz) {
		return SysLogs.class.isAssignableFrom(clazz);
	}

	@Override
	public void validate(Object target, Errors errors) {
        ValidationUtils.rejectIfEmptyOrWhitespace(errors, "desc", "field.required");
//        SysLogs sysLogs = (SysLogs) target;
	}

}
